package util.page;

/**
 * 分页参数
 *
 * @author wanglei
 * @date 2020/2/3
 * @updateDate 2020/12/21
 */
public class Page {
    /** 总数 */
    long total;
    /** 每页显示多少条数据 */
    int pageSize;
    /** 当前页数 */
    int current;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    @Override
    public String toString() {
        return "{" +
                "total=" + total +
                ", pageSize=" + pageSize +
                ", current=" + current +
                '}';
    }
}

